#ifndef __COMMON_HPP__
#define __COMMON_HPP__
#include <iostream>
#include <sys/socket.h>
#include <sys/types.h>
#include <netinet/in.h>
#include <arpa/inet.h>

#define Die(code) do    \
    {                   \
        exit(code);     \
    }while(0)

#define CONV(v) (struct sockaddr*)(v)
enum
{
    USAGE_ERR,
    SOCKET_ERR,
    BIND_ERR,
    LISTEN_ERR
};
#endif